-- GENERATED SPELL FOR [Rock Worm] --


function spell0_11788(pUnit, Event) --@Acid Spit,n/a--
pUnit:FullCastSpellOnTarget(44477,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11788', 3000, 1)
end

function Sorts_11788(pUnit, Event)
local choix_sorts_11788 = math.random(0, 0)
if choix_sorts_11788 == 0 then
pUnit:RegisterEvent('spell0_11788', 1, 1)
end
end

function mob11788_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11788', math.random(1500, 3000), 1)
end

function mob11788_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11788_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11788_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11788, 1, 'mob11788_Action')
RegisterUnitEvent(11788, 2, 'mob11788_Leave')
RegisterUnitEvent(11788, 3, 'mob11788_Kill')
RegisterUnitEvent(11788, 4, 'mob11788_Die')
